package com.example.j2eeapp.dao;

import com.example.j2eeapp.commons.dao.GenericDao;
import com.example.j2eeapp.domain.UserEntity;

//Data access object interface to work with User entity database operations.

public interface UserDao extends GenericDao<UserEntity, Long> {

	//Queries database for user name availability
	//return true if available
	boolean checkAvailable(String userName);
	
	//Queries user for username
	//return User entity
	UserEntity loadUserByUsername(String userName);
}
